package com.huanzhidadi.single.utils;

public class StringUtil {

    public static Integer getDigitFromString(String str) {
        String regex = "\\D+";
        String result = str.replaceAll(regex, "");
        System.out.println(result);
        return Integer.valueOf(result);
    }

    public static void main(String[] args) {
        getDigitFromString("start = 12 113a4");
    }
}
